﻿using System;
using System.Collections.Generic;
using FrameWork.Context;

namespace MyDb.DoMain.Entity.DbEntity
{
    public class T_Module : ModelBase
    {

        /// <summary>
        /// 名称 
        /// </summary>
        public string ModuleName {get;set;}

        /// <summary>
        /// 链接 
        /// </summary>
        public string ModuleLinkUrl {get;set;}

        /// <summary>
        /// 图标 
        /// </summary>
        public string ModuleIcon {get;set;}

        /// <summary>
        /// 父节点的名称，如果没有父节点就是0 
        /// </summary>
        public int ParentId {get;set;}

        /// <summary>
        /// 排序 
        /// </summary>
        public int Sequence {get;set;}

        /// <summary>
        /// 是否菜单末级 
        /// </summary>
        public Boolean IsLeaf {get;set;}

        /// <summary>
        /// 是否菜单 
        /// </summary>
        public Boolean IsMenu {get;set;}

        /// <summary>
        /// 描述 
        /// </summary>
        public string Description {get;set;}

        /// <summary>
        /// 对应的Control 
        /// </summary>
        public string ModuleController {get;set;}

        /// <summary>
        /// 分组ID（0教务管理，1系统管理） 
        /// </summary>
        public Byte GroupId {get;set;}

        /// <summary>
        /// - 
        /// </summary>
        public Boolean IsUsed {get;set;}

        /// <summary>
        /// - 
        /// </summary>
        public Boolean IsDel {get;set;}

        /// <summary>
        /// 修改人ID 
        /// </summary>
        public int? EditUserId {get;set;}

        /// <summary>
        /// 修改时间 
        /// </summary>
        public DateTime EditTime {get;set;}

        /// <summary>
        /// 创建人 
        /// </summary>
        public int CreateUserId {get;set;}

        /// <summary>
        /// 创建日期 
        /// </summary>
        public DateTime CreateTime {get;set;}

        /// <summary>
        /// 功能列表
        /// </summary>
        public List<T_Permission> Permissions { set; get; }

    }
}
